<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			
			.div1 {
				background-color: #FF0000;
			}
			
			.div2 {
				background-color: #00FF00;
			}
			
			.div3 {
				background-color: #0000FF;
			}
			
			
			
			.p1 {
				width: 200px;
				height: 150px;
				background-color: #FFFF00;
			}
			
			#div3>div,#div4>div {
				width: 200px;
				height: 100px;
				float: right;
				
			}
			
			/* #div3 {
				overflow: hidden;
			} */
			
			.clear {
				
				clear: both;
			}
			
			
		</style>
	</head>
	<body>
		<div id="div3">
			<div class="div1">我是div1：有浮动</div>
			<div class="div2">我是div2：有浮动</div>
			<div class="div3">我是div3：有浮动</div>
		</div>
		<p class="p1"></p>
		
		<div id="div4">
			<div class="div1">我是div1：有浮动</div>
			<div class="div2">我是div2：有浮动</div>
			<div class="div3">我是div3：有浮动</div>
			<p style="clear: both;">我是一个p标签，我要清除浮动</p>
		</div>
		<p class="p1"></p>
		
	</body>
</html>
